Optimal. Leaf size=48 \[ \frac {\sqrt {x^2+1} \sqrt {x^2+2 x+1}}{x+1}+\frac {\sqrt {x^2+2 x+1} \sinh ^{-1}(x)}{x+1} \]
________________________________________________________________________________________
Rubi [A] time = 0.02, antiderivative size = 48, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.136, Rules used = {970, 641, 215} \begin {gather*} \frac {\sqrt {x^2+1} \sqrt {x^2+2 x+1}}{x+1}+\frac {\sqrt {x^2+2 x+1} \sinh ^{-1}(x)}{x+1} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 215
Rule 641
Rule 970
Rubi steps
\begin {align*} \int \frac {\sqrt {1+2 x+x^2}}{\sqrt {1+x^2}} \, dx &=\frac {\sqrt {1+2 x+x^2} \int \frac {2+2 x}{\sqrt {1+x^2}} \, dx}{2+2 x}\\ &=\frac {\sqrt {1+x^2} \sqrt {1+2 x+x^2}}{1+x}+\frac {\left (2 \sqrt {1+2 x+x^2}\right ) \int \frac {1}{\sqrt {1+x^2}} \, dx}{2+2 x}\\ &=\frac {\sqrt {1+x^2} \sqrt {1+2 x+x^2}}{1+x}+\frac {\sqrt {1+2 x+x^2} \sinh ^{-1}(x)}{1+x}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.02, size = 27, normalized size = 0.56 \begin {gather*} \frac {\sqrt {(x+1)^2} \left (\sqrt {x^2+1}+\sinh ^{-1}(x)\right )}{x+1} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [A] time = 0.14, size = 41, normalized size = 0.85 \begin {gather*} \frac {\sqrt {(x+1)^2} \left (\sqrt {x^2+1}-\log \left (\sqrt {x^2+1}-x\right )\right )}{x+1} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.40, size = 22, normalized size = 0.46 \begin {gather*} \sqrt {x^{2} + 1} - \log \left (-x + \sqrt {x^{2} + 1}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.23, size = 49, normalized size = 1.02 \begin {gather*} -{\left (\sqrt {2} - \log \left (\sqrt {2} + 1\right )\right )} \mathrm {sgn}\left (x + 1\right ) - \log \left (-x + \sqrt {x^{2} + 1}\right ) \mathrm {sgn}\left (x + 1\right ) + \sqrt {x^{2} + 1} \mathrm {sgn}\left (x + 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [C] time = 0.05, size = 16, normalized size = 0.33 \begin {gather*} \left (\arcsinh \relax (x )+\sqrt {x^{2}+1}\right ) \mathrm {csgn}\left (x +1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sqrt {{\left (x + 1\right )}^{2}}}{\sqrt {x^{2} + 1}}\,{d x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \int \frac {\sqrt {{\left (x+1\right )}^2}}{\sqrt {x^2+1}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sqrt {\left (x + 1\right )^{2}}}{\sqrt {x^{2} + 1}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________